package com.lapian.designmode.flyweight.my;

public class ConcreteRole extends AbstractRole {
    private String type="";
    //内部状态
    public ConcreteRole(String type) {
        this.type = type;
    }

    @Override
    public void use(User user) {
        System.out.println("魂师类型为："+type+" 在比赛中"+"……使用者为："+user.getName());
    }
}
